home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / os2 / cenvi2.arj / EDITCMD.CMD < prev    next >
OS/2 REXX Batch file  |  1993-10-11  |  522b  |  17 lines

  1. EXTPROC CEnvi
  2. // EditCmd.cmd - Example Cmm source file that uses the simple
  3. //               FileDlg.lib interface into the WinFileDlg()
  4. //               function in PM.
  5. //
  6. // This program lets user selecte a source file (default to .cmm)
  7. // and then start notepad with that file.
  8.  
  9. #include <FileDlg.lib>
  10.  
  11. FileName = FileDialog("*.cmd","Select a file to edit.",
  12.                       FDS_OPEN_DIALOG | FDS_CENTER,
  13.                       "Edit File");
  14. if ( FileName )
  15.    system("start E.EXE %s",FileName);
  16.  
  17.